package com.basker.pisces.core.sequence;

/**
 * 整型序列生成器接口
 *
 * @author hangwen
 */
public interface ILongSequrenceGenerator {

    /**
     * 获取指定序列的当前值，并按规则递增，该方法要求跨进程线程安全
     *
     * @param sequenceName
     * @return
     */
    long generate(String sequenceName);

}
